{if $strController == "index" && $strAction == "index"}
	{if $relationType == 0}
		<a href="{if $AppUI->id <= 0}{$smarty.const.LINK_INDEX_LOGIN}{else}{$smarty.const.HOST_VFRIEND}request/relation?uid={$objUser->hex}&amp;type=1&amp;token={$strToken|secret:"relation"}{/if}">
        	<img src="{$smarty.const.HOST_STATICS}img/btn/friend.gif" width="53" height="23" border="0" alt="{$smarty.const.DOMAIN_NAME} - gửi yêu cầu thêm bạn mới đến {$objUser->fullnamevn}." />
        </a>
  	{elseif $relationType == 1}
    	<img src="{$smarty.const.HOST_STATICS}img/btn/friend-disable.gif" width="53" height="23" border="0" alt="{$smarty.const.DOMAIN_NAME} - gửi yêu cầu thêm bạn mới đến {$objUser->fullnamevn}." />
    {/if}
{else}
    {if $relationType == 0}
        {if isset($type) && $type==1}
            <li>
        {/if}
        <a href="{if $AppUI->id <= 0}{$smarty.const.LINK_INDEX_LOGIN}{else}{$smarty.const.HOST_VFRIEND}request/relation?uid={$objUser->hex}&amp;type=1&amp;token={$strToken|secret:"relation"}{/if}"><img src="{$smarty.const.HOST_STATICS}img/btn/r-friend.jpg" width="98" height="26" border="0" alt="{$smarty.const.DOMAIN_NAME} - gửi yêu cầu thêm bạn mới đến {$objUser->fullnamevn}." /></a>
        {if isset($type) && $type==1}
            </li>
        {/if}
    {elseif $relationType == 1}
        {if isset($type) && $type==1}
            <li>
        {/if}
        <img src="{$smarty.const.HOST_STATICS}img/btn/r-friend-disable.gif" width="98" height="26" border="0" alt="{$smarty.const.DOMAIN_NAME} - gửi yêu cầu thêm bạn mới đến {$objUser->fullnamevn}." />
        {if isset($type) && $type==1}
            </li>
        {/if}
    {elseif $relationType == 2}
        {if isset($type) && $type==1}
            <li>
        {/if}
        <a href="{if $AppUI->id <= 0}{$smarty.const.LINK_INDEX_LOGIN}{else}{$smarty.const.HOST_VFRIEND}request/relation?uid={$objUser->hex}&amp;type=3&amp;token={$strToken|secret:"relation"}{/if}"><img src="{$smarty.const.HOST_STATICS}img/btn/r-close-friend.gif" width="117" height="26" border="0" alt="{$smarty.const.DOMAIN_NAME} - đề nghị kết thân với {$objUser->fullnamevn}." /></a>
        {if isset($type) && $type==1}
            </li>
        {/if}
    {elseif $relationType == 3}
        {if isset($type) && $type==1}
            <li>
        {/if}
        <img src="{$smarty.const.HOST_STATICS}img/btn/r-close-friend-disable.gif" width="117" height="26" border="0" alt="{$smarty.const.DOMAIN_NAME} - đề nghị kết thân với {$objUser->fullnamevn}." />
        {if isset($type) && $type==1}
            </li>
        {/if}
    {elseif $relationType == 4 && $AppUI->gender != $objUser->gender && $AppUI->gender > 0}
        {if isset($type) && $type==1}
            <li>
        {/if}
        <a href="{if $AppUI->id <= 0}{$smarty.const.LINK_INDEX_LOGIN}{else}{$smarty.const.HOST_VFRIEND}request/relation?uid={$objUser->hex}&amp;type=5&amp;token={$strToken|secret:"relation"}{/if}"><img src="{$smarty.const.HOST_STATICS}img/btn/r-lover.gif" width="101" height="26" border="0" alt="{$smarty.const.DOMAIN_NAME} - ngỏ lời yêu với {$objUser->fullnamevn}." /></a>
        {if isset($type) && $type==1}
            </li>
        {/if}
    {elseif $relationType == 5 && $AppUI->gender != $objUser->gender && $AppUI->gender > 0}
        {if isset($type) && $type==1}
            <li>
        {/if}
        <img src="{$smarty.const.HOST_STATICS}img/btn/r-lover-disable.gif" width="99" height="26" border="0" alt="{$smarty.const.DOMAIN_NAME} - ngỏ lời yêu với {$objUser->fullnamevn}." />
        {if isset($type) && $type==1}
            </li>
        {/if}
    {elseif $relationType == 6 && $AppUI->gender != $objUser->gender && $AppUI->gender > 0  && $smarty.const.FUNCTION_PROPOSED}
        {if isset($type) && $type==1}
            <li>
        {/if}
        <a href="{if $AppUI->id <= 0}{$smarty.const.LINK_INDEX_LOGIN}{else}{$smarty.const.HOST_VFRIEND}request/relation?uid={$objUser->hex}&amp;type=7&amp;token={$strToken|secret:"relation"}{/if}"><img src="{$smarty.const.HOST_STATICS}img/btn/r-proposed.gif" width="85" height="26" border="0" alt="{$smarty.const.DOMAIN_NAME} - gửi lời cầu hôn {$objUser->fullnamevn}." /></a>
        {if isset($type) && $type==1}
            </li>
        {/if}
    {elseif $relationType == 7 && $AppUI->gender != $objUser->gender && $AppUI->gender > 0}
        {if isset($type) && $type==1}
            <li>
        {/if}
        <img src="{$smarty.const.HOST_STATICS}img/btn/r-proposed-disable.gif" width="86" height="26" border="0" alt="{$smarty.const.DOMAIN_NAME} - gửi lời cầu hôn {$objUser->fullnamevn}." />
        {if isset($type) && $type==1}
            </li>
        {/if}
    {/if}
{/if}